FormData

interface FormData : UploadData

An upload data of the application/x-www-form-urlencoded content type.

Types

Link copied to clipboard
class Builder
A builder of FormData.
Link copied to clipboard
interface Pair
A key-value pair that represents a segment of a form data, for example a form field content.

Functions

Link copied to clipboard
open fun bytes(): Array<Byte>
Returns an array containing the upload data bytes of the associated URL request.
Link copied to clipboard
Returns the content type of this upload data as specified in the Content-Type header.
Link copied to clipboard
open fun data(): List<FormData.Pair>
Returns an immutable list of the key-value pairs each representing a segment of a form data or an empty list if the form does not contain any data.
Link copied to clipboard
Creates a new FormData builder.